package com.may.registry;

import java.util.HashSet;

/**
 * @author Denim.leihz 2019-07-23 2:59 PM
 */
public class SetTest {

    public static void main(String[] args) {
        HashSet<String> set1 = new HashSet<>();
        HashSet<String> set2 = new HashSet<>();

        set1.add("1");
        set2.add("1");
        set2.add("2");
        set2.add("3");

        boolean b = set2.removeAll(set1);


        System.out.println(set1);
    }
}
